#include <iostream>

class Cooker
{
public:
    virtual void buyFood() = 0;
    virtual void cook() = 0;
    virtual void eat() = 0;
};

class Maid
{
public:
    virtual void cook() = 0;
    virtual void wash() = 0;
    virtual void clean() = 0;
};

using namespace std;
class Man : public Cooker, public Maid
{
public:
    void buyFood() override
    {
        cout << "男人需要买菜" << endl;
    }

    void cook() override
    {
        cout << "男人要会做饭" << endl;
    }

    void eat() override
    {
        cout << "男人做完饭，需要尝一下好吃才能给我吃" << endl;
    }

    void wash() override
    {
        cout << "男人要会洗衣服才行哦" << endl;
    }

    void clean() override
    {
        cout << "男人也得会打扫卫生做家务捏" << endl;
    }
};

int main(int argc, char const *argv[])
{
    
    Man man{};
    man.buyFood();
    man.cook();
    man.eat();
    man.wash();
    man.clean();
    return 0;
}
